package com.wantdo.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by king on 2017/9/22.
 */
@Controller
public class TemplateControl {

	@RequestMapping("/hello/{testName}")
	public String hello(@PathVariable("testName") String name, Model model) {
		model.addAttribute("test", name);
		return "hello";
	}

}
